<?php namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
class IndexController extends Controller{

    public function index(){

        return view('welcome');
    }

    public function login(){
        session(['admin'=>10]);
        return "登录";
    }
    
    public function test(){
//        $str = "<script>document.write('你们要坚强')</script>";
        $data = [
            'sore'=>50,
            'article'=>array(
                
            )
        ];
        return view('Home/my_web',compact('data'));
    }

    public function layouts(){

        return view('layouts');
    }
    
}